package org.ly817.my.spring.core.ioc.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * 封装一个对象中所有的PropertyValue
 * Created by LuoYu on 2018/4/9.
 */
public class PropertyValues {
    private final List<PropertyValue> propertyValueList = new ArrayList<PropertyValue>();

    public PropertyValues() {
    }

    public void addPropertyValue(PropertyValue pv) {
        //TODO:这里可以对于重复propertyName进行判断，另外添加一个属性名集合
        this.propertyValueList.add(pv);
    }

    public List<PropertyValue> getPropertyValues() {
        return this.propertyValueList;
    }

}
